<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>绩效信息</title>
    <link rel="stylesheet" href="/vendor/simple-line-icons/css/simple-line-icons.css">
    <link rel="stylesheet" href="/vendor/font-awesome/css/fontawesome-all.min.css">
    <link rel="stylesheet" href="/css/styles.css">


    <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/bootstrap-table/src/bootstrap-table.css">
    <link rel="stylesheet" href="assets/examples.css">
    <script src="assets/jquery.min.js"></script>
    <script src="assets/bootstrap/js/bootstrap.min.js"></script>
    <script src="assets/bootstrap-table/src/bootstrap-table.js"></script>
    <script src="assets/ga.js"></script>
    <link type="text/css" rel="stylesheet" href="bootstrap-fileinput-master/css/fileinput.css"/>
    <script type="text/javascript" src="bootstrap-fileinput-master/js/fileinput.js"></script>
    <script type="text/javascript" src="bootstrap-fileinput-master/js/locales/zh.js"></script>


    <style type="text/css">
        .table-responsive1 {
            display: block;
            width: 100%;
            height: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            -ms-overflow-style: -ms-autohiding-scrollbar
        }

        .table-responsive1 > .table-bordered {
            border: 0
        }

        .col-md-6-2 {
            position: relative;
            width: 50%;
            min-height: 1px;
            padding-right: 15px;
            padding-left: 15px
        }

        .col-md-6-2 {
            -webkit-box-flex: 0;
            -ms-flex: 0 0 100%;
            flex: 0 0 100%;
            max-width: 50%
        }

        .row {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -ms-flex-wrap: wrap;
            flex-wrap: wrap;
            margin-right: 15px;
            margin-left: 15px
        }


        .first {
            position: relative;
            height: 30px;
            line-height: 30px;
        }

        .first button, .first input {
            position: absolute;
            left: 0px;
            top: 0;
            width: 94px;
            height: 30px;
            color: #fff;
            background-color: skyblue;
            border-radius: 0px;
            border: none;
            outline: none;
            cursor: pointer;
        }

        .first input {
            opacity: 0;
            width: 185px;
            left: 0; /*这里是为了让cursor效果在按钮内完全生效，但是弊端就是宽度增加，在按钮左侧看不见的位置也能点击到*/
        }


    </style>
</head>
<body>


<!--单文件上传-->
<form action="/upload" method="post" enctype="multipart/form-data">
    <div class="first">
        <button>上 传 文 件</button>
        <input type="file" name="file"/>
    </div>
    <input type="submit" value="确 认 上 传" class="btn btn-primary"/>&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="/add">
        <button type="button" class="btn btn-primary">
            <i class="fa fa-align-center"></i> &nbsp;添加项目
        </button>
    </a>
    <a href="/pro/export">
        <button type="button" class="btn btn-secondary">
            <i class="fa fa-download"></i> &nbsp; 批量导出
        </button>
    </a>
</form>

<div class="card">
    <div class="card-header bg-light">
        所有项目信息
    </div>
    <form th:action="@{/searchproid}" method="post">
        <div class="row mt-4">
            <div class="col-md-4">
                <div class="form-group">
                    <input id="proId" name="proId" class="form-control" placeholder="输入项目编号查询">
                </div>
            </div>
            <div class="col-md-4">
                <div class="form-group">
                    <button class="btn btn-rounded btn-primary" id="search_reward">搜索</button>
                </div>
            </div>
        </div>
    </form>
    <div class="card-body">
        <div class="table-responsive">
            <table class="table table-bordered" id="table_add">
                <thead>
                <tr>
                    <th>项目编号</th>
                    <th>项目建立时间</th>
                    <th>项目名称</th>
                    <th>项目结束时间</th>
                    <th>项目类型</th>
                    <th>模型主管</th>
                    <th>渲染主管</th>
                    <th>后期主管</th>
                    <th>项目状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="pro:${project}">
                    <td th:text="${pro.proId}"></td>
                    <td th:text="${#dates.format(pro.proStartTime,'yyyy-MM-dd')}"></td>
                    <td th:text="${pro.proName}"></td>
                    <td th:text="${#dates.format(pro.proEndTime,'yyyy-MM-dd')}"></td>
                    <td th:text="${pro.proType}"></td>
                    <td th:text="${pro.modelManager}"></td>
                    <td th:text="${pro.drawManager}"></td>
                    <td th:text="${pro.laterManager}"></td>
                    <td th:text="${pro.proState}"></td>
                    <td>
                        <a class="btn btn-sm btn-primary" th:href="@{/updateProject/}+${pro.getProId()}">编辑</a>
                        <a onclick="javascript:if (confirm('确定删除吗？')) { return true;}else{return false;};"
                           class="btn btn-sm btn-danger" th:href="@{/delete/}+${pro.getProId()}">删除</a>
                        <a class="btn btn-sm btn-info" th:href="@{/distribution/}+${pro.getProId()}">分配人员</a>
                    </td>
                </tr>
                </tbody>
            </table>
            <button type="button" class="btn btn-secondary btn-sm add">首页</button>
            <button type="button" class="btn btn-secondary btn-sm add">上一页</button>
            <button type="button" class="btn btn-secondary btn-sm add">下一页</button>
            <button type="button" class="btn btn-secondary btn-sm add">尾页</button>
        </div>
    </div>
</div>

<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/popper.js/popper.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="/vendor/chart.js/chart.min.js"></script>
<!--<script src="/js/manager/all_msg.js"></script>-->
</body>
</html>
